<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/9/13
  Time: 21:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:if test="${loginUser.realName == null}">
    <jsp:forward page="login.jsp"/>
</c:if>
<html>
<head>
    <title>Title</title>
        <link href="/${pageContext.request.contextPath}/css/success.css" rel="stylesheet">
</head>
<style>
    *{
        padding: 0px;
        margin: 0px;
        text-decoration: none;
    }
    table,td{
        border: 1px solid black;
    }
    table,div,h2{
        width: 900px;
        margin: 50px auto;
        border-spacing: 0px;
    }
    tr{
        height: 40px;
        line-height: 50px;
        text-align: center;
    }
    .ccc{
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        border-radius: 10px 10px 10px 10px;
        font-size: 15px;
    }
    .ccc:link{
        border:#666 solid 1px;
        color: black;
    }
    .ccc:visited{
        color: black;
    }
    .ccc:hover{
        border:white solid 1px;
        background-color: #999;
        color: white;
    }
</style>
<body>
    欢迎${loginUser.realName}
    <table>
        <tr>
            <td>序号</td>
            <td>书名</td>
            <td>类型</td>
            <td>作者</td>
        </tr>
        <c:forEach items="${list }" var="user">
            <tr>
                <td>${user.bookId}</td>
                <td>${user.bookName}</td>
                <td>${user.bookType}</td>
                <td>${user.bookWriter}</td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
